@charset "utf-8";
@import "compass/reset";
// 配置sprite的布局方式
$icon-layout: smart;  // vertical/horizontal/diagonal/smart
// 自动输出尺寸
$icon-sprite-dimensions: true;
$txt-layout: smart;
$txt-sprite-dimensions: true;
@import "compass/utilities/sprites";   
@import "icon/*.png";
@import "txt/*.png";             
@include all-icon-sprites;
@include all-txt-sprites;
html,body{
    height: 100%;
    -webkit-user-select: none;
}
*{transition-timing-function: ease-in-out;}
a{
    text-decoration: none;
}
a,button,input{-webkit-tap-highlight-color:rgba(255,0,0,0);}
.f_l { float:left; }
.f_r { float:right; }
.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden;}
.hide{
    display: none;
}

img{
    vertical-align: top;
}
body{
    position: relative;
    width: 640px;
    box-shadow: 0 0 160px 0 #eaeaea;
    margin: 0 auto;
    min-height: 100%;
    font-size: 24px;
    text-align: center;
    -webkit-overflow-scrolling: touch;
    color: #fff;
}
#wrap{
    height: 100%;
    width: 640px;
    //min-height: 1008px;
    position: relative;
    padding-bottom: 1px;
    opacity: 0;
    .icon-play{
        display: block;
        position: absolute;
        z-index: 10;
        top: 38px;
        right: 34px;
    }
    .icon-pause{
        display: block;
        position: absolute;
        z-index: 10;
        top: 38px;
        right: 21px;
    }
    -webkit-transition: opacity ease .3s;
    opacity: 0;
    &.show{
        opacity: 1;
    }
}
.page{
    height: 100%;
    width: 640px;
    position: absolute;
    z-index: 0;
    opacity: 0;
}
.page-1{
    z-index: 1;
    opacity: 1;
    background: url(../img/index-bg.jpg) no-repeat;
    background-size: cover;
    .txt-title{
        margin: 105px auto 0;
    }
    .start{
        display: block;
        margin: 285px auto 0;
    }
    .btn-group{
        font-size: 0;
        height: 148px;
        position: absolute;
        width: 100%;
        text-align: center;
        left: 0;
        bottom: 37px;
        a{
            display: inline-block;
            margin: 0 54px;
        }
    }
}
.swiper-container{
    height: 100%;
}
.page-2{
    -webkit-transition: opacity ease .3s;
    .top{
        position: absolute;
        top: 18px;
        left: 28px;
    }
    .bottom{
        position: absolute;
        left: 36px;
        bottom: 150px;
    }
    &.show{
        opacity: 1;
    }
}
.slide-1{
    background: url(../img/slide-1.jpg) no-repeat;
    background-size: cover;
}
.slide-2{
    background: url(../img/slide-2.jpg) no-repeat;
    background-size: cover;
}
.slide-3{
    background: url(../img/slide-3.jpg) no-repeat;
    background-size: cover;
}
.slide-4{
    background: url(../img/slide-4.jpg) no-repeat;
    background-size: cover;
}
.slide-5{
    background: url(../img/slide-5.jpg) no-repeat;
    background-size: cover;
}

.icon-arrow{
    display: inline-block;
    position: absolute;
    bottom: 40px;
    left: 50%;
    margin-left: -40px;
    z-index: 2;
    -webkit-animation: jump infinite 1s;
}

.slide-6{
    background: url(../img/index-bg.jpg) no-repeat;
    background-size: cover;
    padding-top: 56px;
    box-sizing: border-box;
    .txt-title-2{
        margin: 0 auto;
        position: relative;
    }
    .img-box{
        position: relative;
        width: 519px;
        height: 329px;
        margin: 15px auto 0;
    }
    .icon-video-play{
        display: inline-block;
        position: absolute;
        left: 50%;
        top: 50%;
        margin-left: -96px;
        margin-top: -96px;
    }
    .txt-zhufu-1{
        margin: 20px auto 0;
    }
    .btn-group{
        height: 68px;
        font-size: 0;
        position: absolute;
        width: 100%;
        text-align: center;
        bottom: 65px;
        a{
            display: inline-block;
            margin: 0 29px;
        }
    }
}

.share-box{
    position: fixed;
    width: 640px;
    height: 100%;
    background: rgba(0,0,0,.5);
    left: 50%;
    margin-left: -320px;
    top: 0;
    z-index: 12;
    display: none;
    -webkit-transition: opacity ease .2s;
    opacity: 0;
    .light{
        height: 100%;
    }
    &.show{
        opacity: 1;
    }
}

/***************animate*****************/
.animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

.animated.infinite {
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
}

.animated.hinge {
  -webkit-animation-duration: 2s;
  animation-duration: 2s;
}

.animated.bounceIn,
.animated.bounceOut {
  -webkit-animation-duration: .75s;
  animation-duration: .75s;
}

.animated.flipOutX,
.animated.flipOutY {
  -webkit-animation-duration: .75s;
  animation-duration: .75s;
}

@-webkit-keyframes fadeInDown {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
  }

  100% {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

@-webkit-keyframes fadeInUp {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
  }

  100% {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}
.fadeInUp {
  -webkit-animation-name: fadeInUp;
  animation-name: fadeInUp;
}
.fadeInDown {
  -webkit-animation-name: fadeInDown;
  animation-name: fadeInDown;
}

@-webkit-keyframes jump {
  from {
    -webkit-transform: translate3d(0, 20px, 0);
    transform: translate3d(0, 20px, 0);
  }

  100% {
    -webkit-transform: translate3d(0, -20px, 0);
    transform: translate3d(0, -20px, 0);
  }
}

@media only screen
and (min-device-width: 320px)
and (max-device-width: 480px)
and (-webkit-device-pixel-ratio: 2)
and (device-aspect-ratio: 2/3) {
    .page-1 .start{
        margin-top: 85px;
    }
    .slide-6 .btn-group{
        bottom: 45px;
    }
    .txt-zhufu-1{
        display: none;
    }
}

.video-mark {
    position: fixed;
    top: 0;
    left: 0;
    width: 640px;
    height: 100%;
    background: url("") repeat;
    z-index: 9999;
    left: 50%;
    margin-left: -320px;
    display: none;
    -webkit-transition: opacity .3s ease-in-out;
    -moz-transition: opacity .3s ease-in-out;
    -o-transition: opacity .3s ease-in-out;
    transition: opacity .3s ease-in-out;
    opacity: 0;

    &.show {
        opacity: 1;
    }
    .video-pop {
        display: -webkit-box;
        width: 100%;
        -webkit-box-align: center;
        -webkit-box-pack: center;
        text-align: center;
        height: 100%;
        .video-con {
            position: relative;
            width: 100%;
            video {
                width: 100%;
                height: auto;
            }
            .video-close {
                position: absolute;
                right: 10px;
                top: -80px;
                color: #FFF;
                font-size: 80px;
                line-height: 80px;
            }
        }
    }
}
#loading{
    width: 100%;
    height: 100%;
    background: #000;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
    color: #fff;
    padding-bottom: 1px;
}
.progress{
    font-size: 30px;
    color: #fff;
}

.iScrollVerticalScrollbar {
    position: absolute;
    z-index: 9999;
    width: 10px;
    bottom: 2px;
    top: 2px;
    right: 5px;
    overflow: hidden;
}

.iScrollVerticalScrollbar.iScrollBothScrollbars {
    bottom: 18px;
}

.iScrollIndicator {
    position: absolute;
    border-radius: 10px;
}

.iScrollVerticalScrollbar .iScrollIndicator {
    width: 100%;
    background:#fbb668;
}

//remind
.modal {
    height: 100%;
    position: fixed;
    z-index: 19891015;
    width: 640px;
    top: 0;
    background: rgba(0,0,0,.5);
}

#remind{
    width: 460px;
    height: 200px;
    position: fixed;
    box-sizing: border-box;
    border-radius: 15px;
    top: 50%;
    left: 50%;
    margin-top: -100px;
    margin-left: -230px;
    z-index: 99999999;
    display: -webkit-box;
    -webkit-box-align: center;
    background: #fdd6a3;
    border: 1px solid #f7560f;
    .content{
        color: #4e3417;
        font-size: 28px;
        text-align: center;
        width: 381px;
        padding: 20px 40px;
        line-height: 45px;
    }
}


.layermbox{
    .icon-layer-bg{
        max-width: 555px !important;
        min-width: 555px !important;
        padding: 70px 36px 0 80px;
        box-sizing: border-box;
        background-color: transparent;
        .title{
            position: absolute;
            left: 50%;
            margin-left: -138px;
            top: -65px;
        }
    }
    .icon-result-bg{
        max-width: 548px !important;
        min-width: 548px !important;
        background-color: transparent;
        .icon-info-title{
            position: absolute;
            left: 50%;
            margin-left: -138px;
            top: -65px;
        }
    }
    .layermcont{
        font-size: 24px;
        color: #4e3417;
        padding: 0;
    }
    .laymshade{
        background-color: rgba(0,0,0, .3);
    }
    .btn-group{
        text-align: center;
        font-size: 0;
        padding-right: 24px;
        a{
            display: inline-block;
            vertical-align: top;
        }
    }
}

#rule-box{
    .scroll{
        height: 480px;
        overflow: hidden;
        position: relative;
        padding-right: 20px;
    }
    p{
        line-height: 40px;
    }
    .btn-group{
        margin-top: 25px;
    }
}
#prize-box{
    text-align: center;
    ul{
        height: 170px;
        font-size: 30px;
        color: #4e3417;
        overflow: hidden;
        line-height: 42px;
    }
    .register{
        display: inline-block;
    }
    .prize-list{
        padding-bottom: 25px;
        border-bottom: 5px dashed #997a53;
        margin-right: 24px;
    }
    .tips{
        color: #997a53;
        text-align: left;
        line-height: 40px;
        margin: 25px 0;
    }
    .no-prize{
        height: 262px;
        padding-bottom: 25px;
        border-bottom: 5px dashed #997a53;
        margin-right: 24px;
        box-sizing: border-box;
        line-height: 240px;
    }
}

#info-box{
    text-align: center;
    padding: 60px 30px 45px;
    font-size: 26px;
    p{
        margin-bottom: 34px;
        line-height: 26px;
        margin-top: 10px;
    }
    .item{
        font-size: 0;
        margin-bottom: 16px;
    }
    label{
        font-size: 26px;
        line-height: 40px;
        margin-right: 24px;
    }
    input{
        font-size: 26px;
        height: 42px;
        width: 190px;
        border: 0;
        padding: 8px 12px;
        line-height: 26px;
        box-sizing: border-box;
        outline: none;
    }
    .btn-group{
        margin-top: 25px;
        a:first-child{
            margin-right:34px;
        }
    }
}

#zhufu-box{
    .icon-box{
        margin-top: -40px;
        margin-left: -54px;
    }
    .txt-zhufu-2{
        margin: 0 auto;
    }
    input{
        width: 345px;
        height: 50px;
        font-size: 24px;
        border: 0;
        line-height: 30px;
        outline: none;
        padding: 10px;
        box-sizing: border-box;
        margin: 22px 0 50px 30px;
        
    }
    .btn-group{
        a:first-child{
            margin-right: 65px;
        }
    }
}

#result-box-1{
    text-align: center;
    .tip{
        margin-top: -30px;
        margin-bottom: 48px;
        margin-left: 40px;
    }
    .prizeName{
        font-size: 40px;
        margin-bottom: 70px;
    }
    p{
        margin-bottom: 47px;
        line-height: 26px;
        margin-top: 10px;
    }
    .item{
        font-size: 0;
        margin-bottom: 16px;
        &:last-child{
            margin-bottom: 26px;
        }
    }
    label{
        font-size: 26px;
        line-height: 40px;
        margin-right: 24px;
    }
    input{
        font-size: 26px;
        height: 42px;
        width: 190px;
        border: 0;
        padding: 8px 12px;
        line-height: 26px;
        box-sizing: border-box;
        outline: none;
    }
    .btn-group{
        margin-top: 25px;
        a:first-child{
            margin-right:34px;
        }
    }
    .txt{
        line-height: 40px;
        margin-bottom: 0;
        margin-top: 0;
        text-align: left;
    }
}

.result-box{
    .tip{
        margin: 50px auto 40px;
    }
}
